//
//  XLAppletManager.h
//  campus
//
//  Created by xl on 2020/1/13.
//  Copyright © 2020 xl. All rights reserved.
//

#import <Foundation/Foundation.h>

//小程序路径
//首页小程序路径
#define XLAppletCommonPath @"pages/index/index"
//订单详情路径
#define XLAppletOrderDetailPath @"pages/order/detail"


@interface XLAppletManager : NSObject

/**
 * @param appId 小程序ID
 *
 * @param path 小程序路径
 *
 * @param reqStr 格式要求string1=%@&string2=%@，多个字符串用&拼接
 */
+ (void)startMpassAppletAppId:(NSString *)appId  path:(NSString *)path reqStr:(NSString *)reqStr;

/**
 * 退出所有小程序
 */
+ (void)exitAllMpassAppletWithAppId:(NSString *)appId;

/**
* @param showType 跳转类型
*
* @param url 路径
*
* @parsm appId 小程序APPID
*
*/
- (void)handleJumpLogic:(NSNumber *)showType
                    url:(NSString *)url
                  appId:(NSString *)appId;

@end


